#ifndef __FREETYPR_DIR_H__
#define __FREETYPR_DIR_H__

#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <linux/fb.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <wchar.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_GLYPH_H


typedef struct FontBitMap_t {
	int iXLeft;
	int iYTop;
	int iXMax;
	int iYMax;
	int iBpp;
	int iPitch;   /* 对于单色位图, 两行象素之间的跨度 */
	int iCurOriginX;
	int iCurOriginY;
	int iNextOriginX;
	int iNextOriginY;
	unsigned char *pucBuffer;
}FontBitMap_t, *pFontBitMap_t;

typedef struct Font_Dir_t {
	char * name;
	int (*Font_Dir_init)(char * pcFontFile);
	int (*Font_Dir_Set_Size)(unsigned int dwFontSize);
	int (*Font_Dir_Get_Bitmap)(unsigned int dwCode,pFontBitMap_t current_BitMap);
}Font_Dir_t,*pFont_Dir_t;


int current_Font_Dir_init(char* pcFontFile);

int current_Font_Dir_Set_Size(unsigned int dwFontSize);
int current_Font_Dir_Get_Bitmap(unsigned int dwCode,pFontBitMap_t current_BitMap);

#endif
